

'use strict';

var React = require('React');
var {
	StyleSheet,
	requireNativeComponent,
} = require('react-native');

var SingleView = requireNativeComponent('SingleView');

var {
	Log
} = require('react-native-yankai-utils');

var PropTypes = React.PropTypes;

module.exports = React.createClass({

	propTypes: {
		scaleX: PropTypes.number,
		scaleY: PropTypes.number,
		translateX: PropTypes.number,
		translateY: PropTypes.number,
		rotation: PropTypes.number,
		text: PropTypes.string,
		style: PropTypes.object,
	},

	getDefaultProps: function() {
		return {
			
		}
	},

	render: function() {
		var props = {
			style: styles.view
		};
		for (var key in this.props) {
			props[key] = this.props[key];
		}


		//Log.info(React.Children.count(props.children));
		// delete(props.children);
		// Log.error(props);
		return <SingleView {...props}/>
	}
})

var styles = StyleSheet.create({
	view: {
		backgroundColor: 'red',
	}
})